package com.ricchieri.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

import com.ricchieri.util.FacesUtil;

@Entity
@Inheritance(strategy=InheritanceType.JOINED)
@Table(name="charterExpenseType")
public class CharterExpenseType extends BaseEntity {
	private static final long serialVersionUID = 3901066351689621923L;
	
	@Column(name="description", nullable=false, length=30)
	private String description;
	
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	
	public String getBundleDescription() {
		return FacesUtil.getMessage(description);
	}
	
}